<template>
	<view class="contain">
		<view class="tabs">
			<view class="tabTile" :class="clickIndex===0?'selectedTab':''" @click="changTab(0)">我的收藏</view>
			<view class="tabTile" :class="clickIndex===1?'selectedTab':''" @click="changTab(1)">浏览过</view>
		</view>
		<view class="board">
			<Aproduct v-if="clickIndex===0" :isFav="isFav"></Aproduct>
			<Searchproduct v-if="clickIndex===1" :isShowLoading="false" :isFav="isFav"></Searchproduct>
		</view>
	</view> 
</template>

<script setup lang='ts'>
import { ref } from 'vue'


const isFav=ref(true);
let clickIndex=ref(0)
const changTab=(num:number)=>{
	clickIndex.value=num
}



</script>

<style lang='scss' scoped>
	@import "myfav.scss";
</style>